﻿using Face8280WebSocketServer.Command;
using DoNetDrive.Core.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.Command.Person
{
    public class DeletePerson : JsonCommand
    {
        /// <summary>
        /// 删除人员
        /// </summary>
        /// <param name="cd"></param>
        /// <param name="code">人员编号</param>
        /// <param name="deleteAll">是否删除所有人，1表示删除所有人员，0表示仅删除指定人员</param>
        public DeletePerson(INCommandDetail cd, List<uint> codes, byte deleteAll = 0) : base(cd, null)
        {
            mSendObject = new { cmd = Reply, codes , deleteAll };
            mJsonResult = (s) => _Result = new CommandResult(s);
        }
    }

}
